package com.fc.v2.mapper.auto;

import com.fc.v2.model.auto.Course;
import com.fc.v2.model.auto.CourseExample;
import java.util.List;

import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

/**
 * 课程表 CourseMapper
 * @author fuce_自动生成
 * @email ${email}
 * @date 2021-06-10 16:17:56
 */
public interface CourseMapper {
      	   	      	      	      	      	      	      	      	      	      
    long countByExample(CourseExample example);

    int deleteByExample(CourseExample example);
		
    int deleteByPrimaryKey(Integer id);
		
    int insert(Course record);

    int insertSelective(Course record);

    List<Course> selectByExample(CourseExample example);
		
    Course selectByPrimaryKey(Integer id);
		
    int updateByExampleSelective(@Param("record") Course record, @Param("example") CourseExample example);

    int updateByExample(@Param("record") Course record, @Param("example") CourseExample example); 
		
    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);

    List<Course> getCourseByMechanism(@Param("id") Integer id, @Param("typeId") Integer typeId, @Param("popular") Integer popular);

    Course getSingleCourse(@Param("id") Integer id);
}